package de.tum.in.eist.im.shared;

import java.io.Serializable;
import java.util.List;

/**
 * This class represents a list of messages marked with a tiemstamp that are
 * sent all at once to the client.
 * 
 * @author zardosht
 * 
 */
public class NewMessagesChunk implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3033387623250295289L;
	private long timestamp;
	private List<Message> messages;

	public NewMessagesChunk() {

	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setMessages(List<Message> messages) {
		this.messages = messages;
	}

	public List<Message> getMessages() {
		return messages;
	}

}
